const mongoose = require("mongoose");
mongoose.connect('mongodb://localhost:27017/fan');
const userSchema = new mongoose.Schema({
	username:String,
	password:String,
	email:String
});
const positionSchema = new mongoose.Schema({
	company:String,
	position:String,
	salary:Number,
	address:String,
	logo:String
});
const User = mongoose.model("user",userSchema);
const Position = mongoose.model("position",positionSchema);
module.exports = {User,Position};